QT += core gui widgets
QT += network

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++17

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    main.cpp \
    mainwindow.cpp \
    weatherdata.cpp

HEADERS += \
    WeatherTool.h \
    mainwindow.h \
    weatherdata.h

FORMS += \
    mainwindow.ui
 
TRANSLATIONS += \
    weather-forecast_zh_CN.ts
CONFIG += lrelease
CONFIG += embed_translations

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

# 强制编译器以UTF-8编码处理源文件
QMAKE_CXXFLAGS += -finput-charset=UTF-8
QMAKE_CXXFLAGS += -fexec-charset=UTF-8

RESOURCES += \
    ChinaCitys.qrc \
    back/back.qrc \
    icon/icons.qrc \
    images/images.qrc

DISTFILES += \
    ../ChinaCitys.json \
    back/350.jpg \
    back/back.png \
    back/back1.png \
    back/background.png \
    build/Desktop_Qt_6_9_3_MinGW_64_bit-Debug/debug \
    icon/aqi.png \
    icon/close.png \
    icon/dust.png \
    icon/humidity.png \
    icon/wind_south.png \
    icon/wind_southeast.png \
    icon/wind_southwest.png \
    icons/aqi.png \
    icons/close.png \
    icons/dust.png \
    icons/humidity.png \
    icons/pm25.png \
    icons/search.png \
    icons/sunrise.png \
    icons/wind.png \
    icons/wind_south.png \
    icons/wind_southeast.png \
    icons/wind_southwest.png \
    images/BaoXue.png \
    images/BaoYu.png \
    images/BaoYuDaoDaBaoYu.png \
    images/DaBaoYu.png \
    images/DaBaoYuDaoTeDaBaoYu.png \
    images/DaDaoBaoXue.png \
    images/DaDaoBaoYu.png \
    images/DaXue.png \
    images/DaYu.png \
    images/DongYu.png \
    images/DuoYun.png \
    images/FuChen.png \
    images/LeiZhenYu.png \
    images/LeiZhenYuBanYouBingBao.png \
    images/Mai.png \
    images/QiangShaChenBao.png \
    images/Qing.png \
    images/ShaChenBao.png \
    images/TeDaBaoYu.png \
    images/Wu.png \
    images/XiaoDaoZhongXue.png \
    images/XiaoDaoZhongYu.png \
    images/XiaoXue.png \
    images/XiaoYu.png \
    images/Xue.png \
    images/YangSha.png \
    images/Yin.png \
    images/Yu.png \
    images/YuJiaXue.png \
    images/ZhenXue.png \
    images/ZhenYu.png \
    images/ZhongDaoDaXue.png \
    images/ZhongDaoDaYu.png \
    images/ZhongXue.png \
    images/ZhongYu.png \
    images/undefined.png
